import request from '@/utils/newrequest'
const group_name = 'search'

export default {

search(currentPage,search){
    console.log(currentPage+search);
    

    return request({
        url: `/${group_name}/?keyWord1=${search}&page=${currentPage}`,
        method: 'get',
        // data:{userId:uid}
      })

},

searchById(id){
  return request({
    url: `/${group_name}/searchById/?id=${id}`,
    method: 'get',
    
  })

}


}